cmake_minimum_required(VERSION 3.5.1)
project(SeQueue)

set(QUEUE_SRC sequeue.c)

add_library(LSeQueue STATIC ${QUEUE_SRC})
set_target_properties(LSeQueue PROPERTIES OUTPUT_NAME lsequeue)

add_library(lsequeue SHARED ${QUEUE_SRC})

if(LINUX)
	install(TARGETS LSeQueue ARCHIVE DESTINATION ${INSTALL_DIR}/lib/liblds)
	install(TARGETS lsequeue LIBRARY DESTINATION ${INSTALL_DIR}/lib/${CMAKE_LIBRARY_ARCHITECTURE})
	install(FILES ${INCLUDE_DIR}/Queue/sequeue.h DESTINATION ${INSTALL_DIR}/include/liblds)
endif()
